
package com.huiyun.project.im.server.biz;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
import com.huiyun.project.common.swagger.annotation.EnableHySwagger2;
import com.huiyun.project.im.common.auth.SecurityUtils;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.wf.jwtp.configuration.EnableJwtPermission;

/**
 * Dubbo Spring Cloud Provider Bootstrap.
 */
@EnableHySwagger2
@EnableJwtPermission
@ComponentScan(basePackages = {"com.huiyun.project.im", "com.huiyun.project.global"})
@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication(exclude = {
        DruidDataSourceAutoConfigure.class,
        DataSourceAutoConfiguration.class,
        MybatisPlusAutoConfiguration.class,
        SecurityAutoConfiguration.class
})
public class HuiYunImServerApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(HuiYunImServerApplication.class).run(args);
    }


}
